package cn.huiyunche.base.service.vo;

import cn.huiyunche.base.service.enums.DWaybillStatusEnum;

import java.io.Serializable;
import java.util.Date;

public class DWaybillErrorMsgVo implements Serializable {

    /**
     *
     */
    private static final long serialVersionUID = 1806317449432856955L;

    private Integer id;

    private Long waybillId;

    private String orderCode;

    private String departureProvince;

    private String departureCity;

    private String destProvince;

    private String destCity;

    private String orderLineId;

    private Integer waybillStatus;

    private String waybillStatusText;

    private String errMsg;

    private String userName;

    private Date createTime;

    private Integer waybillLineId;

    private Integer handleTimes;

    private String phone;

    private String errCode;

    private Boolean isHandle;

    public Long getWaybillId() {
        return waybillId;
    }

    public void setWaybillId(Long waybillId) {
        this.waybillId = waybillId;
    }

    public String getOrderCode() {
        return orderCode;
    }

    public void setOrderCode(String orderCode) {
        this.orderCode = orderCode;
    }

    public String getDepartureProvince() {
        return departureProvince;
    }

    public void setDepartureProvince(String departureProvince) {
        this.departureProvince = departureProvince;
    }

    public String getDepartureCity() {
        return departureCity;
    }

    public void setDepartureCity(String departureCity) {
        this.departureCity = departureCity;
    }

    public String getDestProvince() {
        return destProvince;
    }

    public void setDestProvince(String destProvince) {
        this.destProvince = destProvince;
    }

    public String getDestCity() {
        return destCity;
    }

    public void setDestCity(String destCity) {
        this.destCity = destCity;
    }

    public String getOrderLineId() {
        return orderLineId;
    }

    public void setOrderLineId(String orderLineId) {
        this.orderLineId = orderLineId;
    }

    public Integer getWaybillStatus() {
        return waybillStatus;
    }

    public void setWaybillStatus(Integer waybillStatus) {
        this.waybillStatus = waybillStatus;
    }

    public String getErrMsg() {
        return errMsg;
    }

    public void setErrMsg(String errMsg) {
        this.errMsg = errMsg;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getWaybillStatusText() {
        return waybillStatus == null ? "" : DWaybillStatusEnum.getByValue(waybillStatus).getText();
    }

    public void setWaybillStatusText(String waybillStatusText) {
        this.waybillStatusText = waybillStatusText;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public Integer getWaybillLineId() {
        return waybillLineId;
    }

    public void setWaybillLineId(Integer waybillLineId) {
        this.waybillLineId = waybillLineId;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getErrCode() {
        return errCode;
    }

    public void setErrCode(String errCode) {
        this.errCode = errCode;
    }

    public Boolean getIsHandle() {
        return isHandle;
    }

    public void setIsHandle(Boolean isHandle) {
        this.isHandle = isHandle;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getHandleTimes() {
        return handleTimes;
    }

    public void setHandleTimes(Integer handleTimes) {
        this.handleTimes = handleTimes;
    }

    @Override
    public String toString() {
        return "DWaybillErrorMsgVo{" +
                "id=" + id +
                ", waybillId=" + waybillId +
                ", orderCode='" + orderCode + '\'' +
                ", departureProvince='" + departureProvince + '\'' +
                ", departureCity='" + departureCity + '\'' +
                ", destProvince='" + destProvince + '\'' +
                ", destCity='" + destCity + '\'' +
                ", orderLineId='" + orderLineId + '\'' +
                ", waybillStatus=" + waybillStatus +
                ", waybillStatusText='" + waybillStatusText + '\'' +
                ", errMsg='" + errMsg + '\'' +
                ", userName='" + userName + '\'' +
                ", createTime=" + createTime +
                ", waybillLineId=" + waybillLineId +
                ", handleTimes=" + handleTimes +
                ", phone='" + phone + '\'' +
                ", errCode='" + errCode + '\'' +
                ", isHandle=" + isHandle +
                '}';
    }
}